package com.xhtt.modules.task.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhtt.datasource.annotation.DataSource;
import com.xhtt.modules.task.entity.TruckInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author feipc
 * @since 2019-05-14
 */
public interface TruckInfoMapper extends BaseMapper<TruckInfo> {

    @DataSource(value = "slave1")
    List<TruckInfo> getData(@Param(value = "wiNewTime") String wiNewTime);

    String getMaxDate();

    String getMaxPrintDate();

    @DataSource(value = "slave1")
    List<TruckInfo> getPrintData(@Param(value = "printDate") String maxPrintDate);
}
